export function timeParse(time:number){
  const ittime=new Date().getTime()
  const xTime=ittime-time
  const miao=1000
  const fen=60*miao
  const shi=60*fen
  const tian=24*shi
  if(xTime<fen){
    return '刚刚'
  }
  if(xTime<shi){
    return (xTime/fen).toFixed()+'分钟前'
  }
  if(xTime<tian){
    return (xTime/shi).toFixed()+'小时前'
  }
  return (xTime/tian).toFixed()+'天前'
}